package com.carleasoft.mps.core.exceptions;

import com.carleasoft.mps.core.result.BaseResult;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 业务异常，自定义通用业务用该异常
 *
 * @author: haoyi
 */
@ToString
@Getter
@Setter
public class BusinessException extends BaseRunTimeException {

    public BusinessException() {
    }

    public BusinessException(String code, String msg) {
        super(code, msg);
    }

    public BusinessException(BaseResult baseResult) {
        super(baseResult);
    }
}